package org.vsoc.modules.license.service;

import org.vsoc.modules.license.entity.License;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Description: license操作
 * @Author: jeecg-boot
 * @Date:   2025-06-26
 * @Version: V1.0
 */
public interface ILicenseService extends IService<License> {

    /**
     * 生成license证书
     * @param license
     */
    Boolean generateLicense(License license) throws Exception;


    /**
     * 下载license证书
     * @param license
     * @param request
     * @param response
     */
    void downloadFile(String fileName, License license, HttpServletRequest request, HttpServletResponse response);

}
